import {Dispatch, SetStateAction} from "react";

export type TypeLoginFormProps = {
    setModalOpen: Dispatch<SetStateAction<boolean>>,
    setCurrentAuthForm: Dispatch<SetStateAction<string>>,
}

export type TypeUser = {
    email: string,
    password: string,
    password2?: string,
}

export type TypeCaptain = {
    id: number;
    first_name: string;
    last_name: string;
    patronymic: string;
    birth_date: string;
    image: string;
    experience: number;
};

export type TypeFerry = {
    id: number,
    name: string,
    image: any,
    ferry_type: string,
    size: number,
    vehicle_capacity: number,
    passenger_capacity: number,
    captain_id: string,
}

export type TypeTicket = {
    ticket_type?: string,
    vehicle_number: string,
    vehicle_type: string,
}

export type TypeVehicle = {
    registration_number: string;
    vehicle_type: string;
    length: number;
    weight: number;
};